<div class="header">
	<div class="logo" title="logo">
		<a href="pstat.php">PNCP</a>
	</div>
	<div class="nav_box">
		<div class="nav_menu_link_box">
			<?php foreach ($this->getVar('menu') as $do => $menuItem): ?>
				<?php if ((bool)$menuItem['show'] === true) : ?>
					<?php $menuTitle = str_replace('|', '', $menuItem['title']); ?>
					<?php if ((string)$do === (string)$this->getVar('action')): ?>
						<span class="nav_btn_selected"><?php echo $menuTitle; ?></span> |
					<?php else: ?>
						<span><a href="<?php echo $menuItem['url']; ?>"><?php echo $menuTitle; ?></a></span> |
					<?php endif; ?>
				<?php endif; ?>
			<?php endforeach; ?>	
		</div>
		<div class="nav_profile_link_box">
			<!--<span>test</span> | <span><a href="#">设置</a></span> | <span><a href="#">退出</a></span>
			-->
			<?php $envData = $this->getVar('env'); ?>
			<?php foreach($envData['option'] as $val => $label): ?>
				<?php if ($envData['current'] === $val): ?>
					<span class="selected"><?php echo $label; ?></span> |
				<?php else: ?>
					<a href="pstat.php?do=setting&env=<?php echo $val; ?>"><?php echo $label; ?></a> |
				<?php endif; ?>
			<?php endforeach; ?>
		</div>
	</div>
</div>
<div class="clear"></div>